<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <ul>
    <li>点我会弹出易烊千玺吖</li>
    <li>点我会弹出易烊千玺吖</li>
    <li>点我会弹出易烊千玺吖</li>
    <li>点我会弹出易烊千玺吖</li>
    <li>点我会弹出易烊千玺吖</li>
  </ul>
  <script>
    var ul = document.querySelector('ul');
    ul.addEventListener('click', function (e) {
      // alert('易烊千玺吖');
      // e.target 这个可以得到我们点击的对象
      e.target.style.backgroundColor = 'deeppink';
    })
  </script>
</body>

</html>